<div class="modal-header">
	<h3 class="modal-title">编辑用户</h3>
</div>
<div class="modal-body">
	<form role="form" name="tableForm" class="form-horizontal">
		<div class="form-group">
			<label for="input-userNo" class="col-sm-2 control-label">用户工号:</label>
			<div class="col-md-9">
				<input name="userNo" type="text" class="form-control"
					id="input-userNo" ng-model="updateComponent.userNo"
					placeholder="用户工号" required> <span style="color: red"
					ng-show="tableForm.userNo.$error.required">请输入用户工号</span>
			</div>
		</div>
		<div class="form-group">
			<label for="edit-userName" class="col-sm-2 control-label">用户名称:</label>
			<div class="col-md-9">
				<input type="text" name="edit-userName" class="form-control"
					id="edit-userName" ng-model="updateComponent.userName"
					placeholder="用户名称"> <span style="color: red"
					ng-show="tableForm.linkUrl.$error.required">请输入用户名称</span>
			</div>
		</div>
		

		<div class="form-group">
			<label for="input-gender" class="col-sm-2 control-label">性别:</label>
			<div class="col-md-9">
				<input name="gender" type="text" class="form-control"
					id="input-gender" ng-model="updateComponent.gender"
					placeholder="性别">
			</div>
		</div>
		<div class="form-group">
			<label for="input-belong_to_reglon" class="col-sm-2 control-label">所属区域:</label>
			<div class="col-md-9">
				<input name="belong_to_reglon" type="text" class="form-control"
					id="input-belong_to_reglon"
					ng-model="updateComponent.belongToReglon" placeholder="所属区域">
			</div>
		</div>
		<div class="form-group">
			<label for="input-belong_to_department"
				class="col-sm-2 control-label">所在部门:</label>
			<div class="col-md-9">
				<input name="belong_to_department" type="text" class="form-control"
					id="input-belong_to_department"
					ng-model="updateComponent.belongToDepartment" placeholder="所在部门">
			</div>
		</div>
		
		<div class="form-group">
			<label for="edit-role"
				class="col-sm-2 control-label">用户角色:</label>
			<div class="col-md-9">
					<select class="selectpicker form-control" ng-init=""  ng-model="updateComponent.roleId" >
							<option  ng-repeat="role in controller.roleList" value={{role.id}}>{{role.name}}</option>
					</select>
					
			</div>
		</div>
		<div class="form-group">
			<label for="input-email" class="col-sm-2 control-label">电子邮箱:</label>
			<div class="col-md-9">
				<input name=emai type="text" class="form-control" id="input-email"
					ng-model="updateComponent.emai" placeholder="电子邮箱">
			</div>
		</div>
		<div class="form-group">
			<label for="input-telephone" class="col-sm-2 control-label">电话:</label>
			<div class="col-md-9">
				<input name="telephone" type="text" class="form-control"
					id="input-telephone" ng-model="updateComponent.telephone"
					placeholder="电话">
			</div>
		</div>
		<div class="form-group">
			<label for="edit-password" class="col-sm-2 control-label">密码:</label>
			<div class="col-md-9">
				<input name="edit-password" type="password" class="form-control"
					id="edit-password" ng-model="updateComponent.userPasswd"
					placeholder="用户密码" autocomplete="on"
					onfocus="if(this.placeholder=='用户密码') this.placeholder=''"
					onblur="if(this.placeholder=='') this.placeholder='用户密码'">
			</div>
		</div>
		<div class="form-group">
			<label for="input-Account_Validity_Period"
				class="col-sm-2 control-label">账号有效期:</label>
			<!-- 			<div class="col-md-9"> -->
			<!-- 				<input name="Account_Validity_Period" type="text" class="form-control" id="input-Account_Validity_Period" -->
			<!-- 					ng-model="updateComponent.accountValidityPeriod" placeholder="账号有效期"> -->
			<!-- 			</div> -->
			<div class="col-md-2"
				style="margin-left: 16.5%; margin-top: -4.5%; width: 75%;">
				<input id="input-Account_Validity_Period" type="text"
					class="form-control" uib-datepicker-popup="{{controller.format}}"
					ng-model="updateComponent.accountValidityPeriod"
					is-open="controller.popup1.opened" close-text="关闭" clear-text="清空"
					current-text="今天" alt-input-formats="controller.altInputFormats"
					datepicker-options="controller.dateOptions"
					ng-change="controller.changeDate();" ng-click="controller.open1();"
					placeholder="有效期" />
			</div>
		</div>
	</form>
</div>
<div class="modal-footer">
	<button class="btn btn-primary" type="button" ng-click="save()">保存</button>
	<button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>